/* 
 *  Copyright (c) 2011—2013 Panguso.com. All rights reserved. 
 *  File Name:  DbActivityAbstractRule.java                                      
 *  File Contents Outline : 活动抽象规则组数据对象
 *  File  Create Date:   2012年7月30日
 *  File Version#: Revision#: #1                  
 *  File  Latest Modify Date : 2013年1月16日
 *  File Author :  bachuan@panguso.com
 */
package storage.dbobject;

import java.util.ArrayList;
import java.util.UUID;

public class DbActivityAbstractRule {
    public static final String cl_key = "KEY";
    private String rowKey;
    public static final String cl_name = "name";
    private String name;
    public static final String cl_activityAbstractRule = "abstractRule";
    private ArrayList<String> abstractRuleList;
    public static final String cl_createTime = "createTime";
    private String createTime;
    public static final String cl_product="product";
    private String product;
    public static final String cl_tagList="taglist";
    private String taglist;
    

   public DbActivityAbstractRule(String rowKey, String name, String product,String taglist,ArrayList<String> abstractRuleList,String createTime) {        
        this.rowKey = rowKey;
        this.createTime = createTime;
        this.name = name;
        this.abstractRuleList=abstractRuleList;
        this.product=product;
        this.taglist=taglist;
    }

    public DbActivityAbstractRule(String name,String product,String taglist,ArrayList<String> abstractRuleList,String createTime) {       
        this.rowKey = UUID.randomUUID().toString();
        this.createTime = createTime;
        this.name = name;
        this.abstractRuleList=abstractRuleList;
        this.product=product;
        this.taglist=taglist;
    }

    /**
     * @return the rowKey
     */
    public String getRowKey() {
        return rowKey;
    }

    /**
     * @param rowKey the rowKey to set
     */
    public void setRowKey(String rowKey) {
        this.rowKey = rowKey;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the createTime
     */
    public String getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime the createTime to set
     */
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    /**
     * @return the product
     */
    public String getProduct() {
        return product;
    }

    /**
     * @param product the product to set
     */
    public void setProduct(String product) {
        this.product = product;
    }

    /**
     * @return the taglist
     */
    public String getTaglist() {
        return taglist;
    }

    /**
     * @param taglist the taglist to set
     */
    public void setTaglist(String taglist) {
        this.taglist = taglist;
    }

    /**
     * @return the abstractRuleList
     */
    public ArrayList<String> getAbstractRuleList() {
        return abstractRuleList;
    }

    /**
     * @param abstractRuleList the abstractRuleList to set
     */
    public void setAbstractRuleList(ArrayList<String> abstractRuleList) {
        this.abstractRuleList = abstractRuleList;
    }
    
}